const Router = require('koa-router')
const account = require('./accounts')
const tab = require('./tab')
const hotSearch = require('./hotSearch')
const article = require('./article')
const code = require("./code")
const report = require("./report")
const bug = require("./bug")
const notice = require("./notice")
let _web = new Router()

_web.use('/account', account.routes(), account.allowedMethods())
_web.use('/tab', tab.routes(), tab.allowedMethods())
_web.use('/hotSearch', hotSearch.routes(), hotSearch.allowedMethods())
_web.use('/article', article.routes(), article.allowedMethods())
_web.use('/code', code.routes(), code.allowedMethods())
_web.use('/report', report.routes(), report.allowedMethods())
_web.use('/bug', bug.routes(), bug.allowedMethods())
_web.use('/notice', notice.routes(), notice.allowedMethods())

module.exports = _web
